import Vue from 'vue'
import VueRouter from 'vue-router'
import Center from '@/router/modules/center'
import Cinemas from '@/router/modules/cinemas'
import Films from '@/router/modules/films'
import News from '@/router/modules/news'
import Common from "@/router/modules/common";
Vue.use(VueRouter)

const routes = [
  ...Center,
  ...Cinemas,
  ...Films,
  ...News,
  ...Common
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
